<h2>Наши публикации</h2>
<?if($articles):?>
<?foreach($articles as $articles_item):?>
    <div class="news-item">
        <a href="">
            <?php $this->widget('pictures.components.PicturesEditor', array('model' => $articles_item, 'mode' => 'FirstOnly', 'width'=>107,'height'=>107));?>
        </a>
        <div class="news-item-text">
            <span class="news-item-date"><?=Article::normalDate($articles_item->date_created)?></span> <?if($articles_item->category_id>0):?>
            &raquo; <a href="<?=Yii::app()->createUrl('articles/category/',array('id'=>$articles_item->category_id))?>"><?=ArtCategory::model()->findByPk($articles_item->category_id)->title?></a><?endif?><br/>
            <a href="<?=Yii::app()->createUrl('articles/view',array('id'=>$articles_item->id))?>" title="<?=$articles_item->title?>"><?=$articles_item->title?></a>
            <p>
                <?=$articles_item->desc?>
            </p>
        </div>
    </div>
    <?endforeach?>
<?$this->widget('CLinkPager', array(
    'pages' => $pages,
    'header'  => '',
    'nextPageLabel' => '&rarr;',
    'prevPageLabel' => '&larr;',
    'cssFile' => Yii::app()->theme->baseUrl.'/pager.css'
))?>
<?endif?>